import { Entity, Column, PrimaryColumn } from "typeorm";

/**
 * 球桌类型表
 */
@Entity("BBL_DESK_TYPE")
export class BblDeskType {
  @PrimaryColumn({
    name: "DESK_TYPE_ID",
    type: "varchar",
    length: 50,
    comment: "球桌类型ID"
  })
  deskTypeId: string;

  @Column({
    name: "DESK_TYPE_NAME",
    type: "varchar",
    length: 255,
    nullable: false,
    comment: "球桌类型名称"
  })
  deskTypeName: string;

  @Column({
    name: "DESK_TYPE_REMARK",
    type: "varchar",
    length: 2000,
    nullable: true,
    comment: "备注"
  })
  deskTypeRemark: string;

  @Column({
    name: "DESK_TYPE_IS_DELETED",
    type: "int",
    nullable: true,
    comment: "是否删除，0：未删除，1：已删除"
  })
  deskTypeIsDeleted: number;

  @Column({
    name: "DESK_TYPE_INDEX",
    type: "int",
    nullable: true,
    comment: "排序"
  })
  deskTypeIndex: number;
}
